|
|
(#1)
|
|
|||
|
[^] Arrow (site list). -
02-03-2011, 04:02 PM
Ok make sure you give thanks for this mod even tho its so simple.
OPEN (funcs.php). FIND Code:
if($fetch_site) {
$download_site = mysql_query("SELECT name as sname, url as surl, FROM wcddl_sites WHERE id = '".addslashes($row['sid'])."'");
CHANGE (sql) Code:
$download_site = mysql_query("SELECT name as sname, url as surl, id as sssid FROM wcddl_sites WHERE id = '".addslashes($row['sid'])."'");
OPEN (index.php) FIND Code:
$fetch_downloads = true; CHANGE Code:
$fetch_downloads = true;
$fetch_site = TRUE;
FIND(in index.php). Code:
<td><strong>Title</strong></td><td>Views</td> CHANGE l Code:
<td><strong>Title</strong></td><td>Views</td><td>Site</td> FIND Code:
foreach($downloads as $dl) {
ADD AFTER Code:
if(preg_match("/".$dl[sssid]."/",$inarray)){ // if its there
$dl[sname] = '^';
}else{
$dl[sname] = '<b>'.$dl[sname].'</b>';
}
FIND (just after the table). Code:
<?php } ?> CHANGE (add the var). Code:
<?php $inarray = $dl[sssid]; } ?> that should give you the arrow list as seen on benzoddl.org if you want an image or summat you can change Code:
$dl[sname] = '^'; TO Code:
$dl[sname] = '<img src="arrow.gif">'; hope you enjoy this and also if you would like any feature on your site you can pay a small fee for this to be coded my our good team of programmers. please PM me or JmZ for more information on this. thanks |
|
(#2)
|
|
(#3)
|
| Bookmarks |
|
| Tags |
| arrow, list, site |
| Thread Tools | |
| Display Modes | |
|
|